package com.koliko.from_now_on.service.impl;

import com.koliko.from_now_on.bean.Team;
import com.koliko.from_now_on.dao.ITeamDao;
import com.koliko.from_now_on.dao.impl.TeamDaoImpl;
import com.koliko.from_now_on.service.ITeamService;

import java.util.List;

public class TeamServiceImpl implements ITeamService {
    private ITeamDao teamDao=new TeamDaoImpl();
    public List<Team> getTeam(Team team){
        return teamDao.list(team);
    }

    @Override
    public Integer addTeam(Team team) {
        return teamDao.save(team);
    }

    @Override
    public List<Team> queryGJ(Team team) {
        return teamDao.queryGJ(team);
    }

    @Override
    public List<Team> queryWS(Team team) {
        return teamDao.queryWS(team);
    }

    @Override
    public List<Team> queryDXC(Team team) {
        return teamDao.queryDXC(team);
    }

    @Override
    public Team CheckTeam(String stu1Id) {
        return teamDao.checkTeam(stu1Id);
    }

    @Override
    public Integer addTitle(Team team) {
        return teamDao.saveTitle(team);
    }
}
